package actions;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class SimpleServlet extends HttpServlet {
	public void init() throws ServletException {
	}

	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		PrintWriter out = resp.getWriter();
		resp.setContentType("text/html");
		out.println("<html><body><center><font color=\"red\">");
		out.println(req.getParameter("strings"));
		out.println("</font></center>");
		out.println("<br><center><form action=\"\\index.html\"><input type=\"submit\" size=\"20\" value=\"返回\"></form></center>");
		out.println("</body></html>");

	}
}